package com.yunwaikeji.gy_tool_library.widget.recycler.image;

import com.yunwaikeji.gy_tool_library.info.GYImageRecyclerInfo;
import com.yunwaikeji.gy_tool_library.utils.http.upload.GYUploadModel;

public class GYImageUploadBuilder implements GYImageRecyclerInfo {
    private final GYImageRecyclerView imageRecyclerView;
    private int maxNumber = 1;//最大同时上传数量，并发数
    private int nowNumber;//当前数量
    private GYUploadModel<?> uploadModel;

    public GYImageUploadBuilder(GYImageRecyclerView imageRecyclerView) {
        this.imageRecyclerView = imageRecyclerView;
    }

    public int getMaxNumber() {
        return maxNumber;
    }

    public GYImageUploadBuilder setMaxNumber(int maxNumber) {
        this.maxNumber = maxNumber;
        return this;
    }

    public int getNowNumber() {
        return nowNumber;
    }

    public GYImageUploadBuilder setNowNumber(int nowNumber) {
        this.nowNumber = nowNumber;
        return this;
    }

    public GYUploadModel<?> getUploadModel() {
        return uploadModel;
    }

    public GYImageUploadBuilder setUploadModel(GYUploadModel<?> uploadModel) {
        this.uploadModel = uploadModel;
        return this;
    }

    public GYImageRecyclerView toView() {
        return imageRecyclerView;
    }
}
